//
//  PKRequestManager.h
//  PianKe
//
//  Created by Li on 15/7/21.
//  Copyright (c) 2015年 Li. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^RequestFinish)(NSData *data);
typedef void (^RequestError)(NSError *error);
typedef NS_ENUM(NSInteger, RequestType) {
    GET,
    POST
};

@interface PKRequestManager : NSObject<NSURLConnectionDataDelegate>

@property (nonatomic, copy) RequestFinish requestFinish;
@property (nonatomic, copy) RequestError requestError;


+ (void)manager:(RequestType)requestType requestWith:(NSString *)urlStr parDic:(NSDictionary *)parDic finish:(RequestFinish)finish error:(RequestError)error;



@end
